package com.cocolove2.library_cocodialog.animations.slideExit;

import android.animation.ObjectAnimator;
import android.util.DisplayMetrics;
import android.view.View;

import com.cocolove2.library_cocodialog.animations.BaseAnimatorEffects;

public class SlideBottomExit extends BaseAnimatorEffects {
    @Override
    public void setupAnimator(View view) {
        DisplayMetrics dm = view.getContext().getResources().getDisplayMetrics();
        mAnimatorSet.playTogether(//
                ObjectAnimator.ofFloat(view, "translationY", 0, 250 * dm.density), //
                ObjectAnimator.ofFloat(view, "alpha", 1, 0));
    }


}
